package com.julius.design.pattern.builder;

/**
 * <p>
 *      套餐建造者模式测试类
 * </p>
 */
public class MealBuilderTest {


    public static void main(String[] args) {
        MealBuilder builder = new MealBuilder();

        Meal meal = builder.vegMeal();

        meal.showItems();

        System.out.println("veg total cost:"+meal.getCost());


        Meal chickenMeal = builder.chickenMeal();

        chickenMeal.showItems();

        System.out.println("chicken total cost:"+chickenMeal.getCost());


    }
}
